package com.sec.etech.chain.customergroup.entity;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sec.etech.common.fanutil.BaseEntity;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName(value = "proj_project_z_customergroup")
public class CustomerGroup extends BaseEntity implements Serializable {
    @TableId(value = "customergroupid")
    private String customergroupid;
    private String parentId;
    private Long levelId;
    private String customergroupname;
    private String customergroupcode;
    private String customergroupfullname;
    private String customergroupdetail;
    private String remark;

    @TableField(exist = false)
    private Boolean isLeaf;

    public CustomerGroup() {
    }

    public CustomerGroup(String customergroupid, String parentId, String customergroupfullname) {
        this.customergroupid = customergroupid;
        this.parentId = parentId;
        this.customergroupfullname = customergroupfullname;
    }
}
